<head>
    <meta charset="utf-8">
    <title>Hello MUI</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!--标准mui.css-->
    <link rel="stylesheet" href="../css/mui.min.css">
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="css/app.css"/>
    <style>
        html,
        body {
            background-color: #efeff4;
        }

        p {
            text-indent: 22px;
        }

        span.mui-icon {
            font-size: 14px;
            /*color: #007aff;*/
            margin-left: -15px;
            padding-right: 10px;
        }

        .mui-off-canvas-left {
            color: #fff;
        }

        .title {
            margin: 35px 15px 10px;
        }

        .title + .content {
            margin: 10px 15px 35px;
            color: #bbb;
            text-indent: 1em;
            font-size: 14px;
            line-height: 24px;
        }

        input {
            color: #000;
        }


        .title {
            margin: 20px 15px 10px;
            color: #6d6d72;
            font-size: 15px;
        }

        .oa-contact-cell.mui-table .mui-table-cell {
            padding: 11px 0;
            vertical-align: middle;
        }

        .oa-contact-cell {
            position: relative;
            margin: -11px 0;
        }

        .oa-contact-avatar {
            width: 75px;
        }

        .oa-contact-avatar img {
            border-radius: 50%;
        }

        .oa-contact-content {
            width: 100%;
        }

        .oa-contact-name {
            margin-right: 20px;
        }

        .oa-contact-name, oa-contact-position {
            float: left;
        }
    </style>
    <style>
        li {
            list-style-type: none;
        }
    </style>

</head>

<body>
<div id="offCanvasWrapper" class="mui-off-canvas-wrap mui-draggable">
    <!--侧滑菜单部分-->
    <aside id="offCanvasSide" class="mui-off-canvas-left">
        <div id="offCanvasSideScroll" class="mui-scroll-wrapper">
            <div class="mui-scroll">
                <div class="title">侧滑导航</div>
                <div class="content">
                    这是可拖动式侧滑菜单示例，你可以在这里放置任何内容；关闭侧滑菜单有多种方式： 1.在手机屏幕任意位置向左拖动(drag)；2.点击本侧滑菜单页之外的任意位置; 3.点击如下红色按钮
                    <span class="android-only">；4.Android手机按back键；5.Android手机按menu键
							</span>。
                    <p style="margin: 10px 15px;">
                        <button id="offCanvasHide" type="button" class="mui-btn mui-btn-danger mui-btn-block"
                                style="padding: 5px 20px;">关闭侧滑菜单
                        </button>
                    </p>

                </div>
                <div class="title" style="margin-bottom: 25px;">侧滑列表示例</div>
                <ul class="mui-table-view mui-table-view-chevron mui-table-view-inverted">
                    <li class="mui-table-view-cell">
                        <a class="mui-navigate-right">
                            Item 1
                        </a>
                    </li>
                    <li class="mui-table-view-cell">
                        <a class="mui-navigate-right">
                            Item 2
                        </a>
                    </li>
                    <li class="mui-table-view-cell">
                        <a class="mui-navigate-right">
                            Item 3
                        </a>
                    </li>
                    <li class="mui-table-view-cell">
                        <a class="mui-navigate-right">
                            Item 4
                        </a>
                    </li>
                    <li class="mui-table-view-cell">
                        <a class="mui-navigate-right">
                            Item 5
                        </a>
                    </li>
                    <li class="mui-table-view-cell">
                        <a class="mui-navigate-right">
                            Item 6
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </aside>
    <!--主界面部分-->
    <div class="mui-inner-wrap">

        <div id="offCanvasContentScroll" class="mui-content mui-scroll-wrapper">
            <div class="mui-scroll">
                <div class="mui-content-padded" style="margin: 10px">
                    <header class="mui-bar mui-bar-nav">
                        <a href="#offCanvasSide" class="mui-icon mui-action-menu mui-icon-bars mui-pull-left"></a>

                        <h1 class="mui-title" style="">圣令</h1>

                        <a id="icon-email" href="/pwd/pwd"><span class="mui-icon mui-icon-email mui-pull-right"></span></a>
                    </header>

                    <div class="mui-content">
                        <div id="tabbar" class="mui-control-content mui-active">
                            <#--   何谓div模式的选项卡？其实就是通过DIV模拟一个独立页面，通过DIV的显示、隐藏模拟不同页面的切换，典型的SPA模式；
                             这种模式适合简单业务系统，因为每个选项卡内容要写在一个DIV中，
                               若逻辑复杂，会导致当前页面DOM结构繁杂，造成webview响应缓慢，甚至崩溃；
                               因此若系统较复杂，需要下拉刷新等操作，推荐使用webview模式的选项卡；
                      -->
                            <div id="slider" class="mui-slider" style="border-radius:10px">
                                <#--设置图片宽度-->
                                <div class="mui-slider-group mui-slider-loop" style="width: 65%">
                                    <!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
                                    <div class="mui-slider-item mui-slider-item-duplicate">
                                        <a href="#">
                                            <img src="/images/yuantiao.jpg">
                                        </a>
                                    </div>
                                    <!-- 第一张 -->
                                    <div class="mui-slider-item">
                                        <a href="#">
                                            <img src="/images/shuijiao.jpg">
                                        </a>
                                    </div>
                                    <!-- 第二张 -->
                                    <div class="mui-slider-item">
                                        <a href="#">
                                            <img src="/images/muwu.jpg">
                                        </a>
                                    </div>
                                    <!-- 第三张 -->
                                    <div class="mui-slider-item">
                                        <a href="#">
                                            <img src="/images/cbd.jpg">
                                        </a>
                                    </div>
                                    <!-- 第四张 -->
                                    <div class="mui-slider-item">
                                        <a href="#">
                                            <img src="/images/yuantiao.jpg">
                                        </a>
                                    </div>
                                    <!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
                                    <div class="mui-slider-item mui-slider-item-duplicate">
                                        <a href="#">
                                            <img src="/images/shuijiao.jpg">
                                        </a>
                                    </div>
                                </div>
                                <div class="mui-slider-indicator">
                                    <div class="mui-indicator mui-active"></div>
                                    <div class="mui-indicator"></div>
                                    <div class="mui-indicator"></div>
                                    <div class="mui-indicator"></div>
                                </div>
                            </div>
                            <#--轮播图下的内容-->
                            <div>

                                <div id="broadcast" class="bar" name="giftactive">
                                    <div style="float:left"><strong>最新新闻：</strong></div>

                                    <div id="demo" style="overflow:hidden;height:1rem;line-height:1rem;">
                                        <ul class="mingdan" id="holder">
                                            <li><a href="/pwd/pwdList" target="_blank">aaaaaaa</a></li>
                                            <li><a href="#" target="_blank">bbbbbbbb</a></li>
                                            <li><a href="#" target="_blank">ccccccccc</a></li>
                                            <li><a href="#" target="_blank">dddddddddd</a></li>
                                            <li><a href="#" target="_blank">eeeeeeeeee</a></li>
                                        </ul>
                                    </div>
                                </div>

                                <div class="mui-content">
                                    <ul class="mui-table-view mui-grid-view mui-grid-9">
                                        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="/pwd/pwd" style="cursor:pointer;">
                                            <span class="mui-icon mui-icon-home" style="margin-left: 10px;"></span>
                                            <div class="mui-media-body">密码仓库</div></a>
                                        </li>
                                        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                                                <span class="mui-icon mui-icon-email" style="margin-left: 10px;"><span
                                                            class="mui-badge">5</span></span>
                                                <div class="mui-media-body">Email</div>
                                            </a></li>
                                        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                                                <span class="mui-icon mui-icon-chatbubble"
                                                      style="margin-left: 10px;"></span>
                                                <div class="mui-media-body">Chat</div>
                                            </a></li>
                                        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                                                <span class="mui-icon mui-icon-location"
                                                      style="margin-left: 10px;"></span>
                                                <div class="mui-media-body">location</div>
                                            </a></li>
                                        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                                                <span class="mui-icon mui-icon-search"
                                                      style="margin-left: 10px;"></span>
                                                <div class="mui-media-body">Search</div>
                                            </a></li>
                                        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                                                <span class="mui-icon mui-icon-phone" style="margin-left: 10px;"></span>
                                                <div class="mui-media-body">Phone</div>
                                            </a></li>
                                        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                                                <span class="mui-icon mui-icon-gear" style="margin-left: 10px;"></span>
                                                <div class="mui-media-body">Setting</div>
                                            </a></li>
                                        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                                                <span class="mui-icon mui-icon-info" style="margin-left: 10px;"></span>
                                                <div class="mui-media-body">about</div>
                                            </a></li>
                                        <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                                                <span class="mui-icon mui-icon-more" style="margin-left: 10px;"></span>
                                                <div class="mui-media-body">more</div>
                                            </a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div id="tabbar-with-chat" class="mui-control-content">
                            <div class="title">这是div模式选项卡中的第2个子页面，该页面展示一个消息列表</div>

                            <ul class="mui-table-view mui-table-view-chevron">
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 1</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 2</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 3</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 4</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 5</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 6</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 7</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 8</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 9</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 10</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 11</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 12</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 13</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 14</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 15</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 16</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 17</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 18</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 19</a></li>
                                <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 20</a></li>
                            </ul>

                        </div>
                        <div id="tabbar-with-contact" class="mui-control-content">
                            <div class="title">这是div模式选项卡中的第3个子页面，该页面展示一个通讯录示例.</div>
                            <ul class="mui-table-view mui-table-view-striped mui-table-view-condensed">
                                <li class="mui-table-view-cell">
                                    <div class="mui-slider-cell">
                                        <div class="oa-contact-cell mui-table">
                                            <div class="oa-contact-avatar mui-table-cell">
                                                <img src="/images/60x60.gif"/>
                                            </div>
                                            <div class="oa-contact-content mui-table-cell">
                                                <div class="mui-clearfix">
                                                    <h4 class="oa-contact-name">叶文洁</h4>
                                                    <span class="oa-contact-position mui-h6">董事长</span>
                                                </div>
                                                <p class="oa-contact-email mui-h6">
                                                    yewenjie@sina.com
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li class="mui-table-view-cell">
                                    <div class="mui-slider-cell">
                                        <div class="oa-contact-cell mui-table">
                                            <div class="oa-contact-avatar mui-table-cell">
                                                <img src="../images/60x60.gif"/>
                                            </div>
                                            <div class="oa-contact-content mui-table-cell">
                                                <div class="mui-clearfix">
                                                    <h4 class="oa-contact-name">艾AA</h4>
                                                    <span class="oa-contact-position mui-h6">总经理</span>
                                                </div>
                                                <p class="oa-contact-email mui-h6">
                                                    aaa@163.com
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li class="mui-table-view-cell">
                                    <div class="mui-slider-cell">
                                        <div class="oa-contact-cell mui-table">
                                            <div class="oa-contact-avatar mui-table-cell">
                                                <img src="../images/60x60.gif"/>
                                            </div>
                                            <div class="oa-contact-content mui-table-cell">
                                                <div class="mui-clearfix">
                                                    <h4 class="oa-contact-name">罗辑</h4>
                                                    <span class="oa-contact-position mui-h6">员工</span>
                                                </div>
                                                <p class="oa-contact-email mui-h6">
                                                    luoji@126.com
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li class="mui-table-view-cell">
                                    <div class="mui-slider-cell">
                                        <div class="oa-contact-cell mui-table">
                                            <div class="oa-contact-avatar mui-table-cell">
                                                <img src="../images/60x60.gif"/>
                                            </div>
                                            <div class="oa-contact-content mui-table-cell">
                                                <div class="mui-clearfix">
                                                    <h4 class="oa-contact-name">云天明</h4>
                                                    <span class="oa-contact-position mui-h6">员工</span>
                                                </div>
                                                <p class="oa-contact-email mui-h6">
                                                    ytm@163.com
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li class="mui-table-view-cell">
                                    <div class="mui-slider-cell">
                                        <div class="oa-contact-cell mui-table">
                                            <div class="oa-contact-avatar mui-table-cell">
                                                <img src="../images/60x60.gif"/>
                                            </div>
                                            <div class="oa-contact-content mui-table-cell">
                                                <div class="mui-clearfix">
                                                    <h4 class="oa-contact-name">史强</h4>
                                                    <span class="oa-contact-position mui-h6">员工</span>
                                                </div>
                                                <p class="oa-contact-email mui-h6">
                                                    shiqiang@gmail.com
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div id="tabbar-with-map" class="mui-control-content">
                            <div class="title">这是div模式选项卡中的第4个子页面，该页面展示一个常见的设置示例.</div>
                            <ul class="mui-table-view">
                                <li class="mui-table-view-cell">
                                    <a class="mui-navigate-right">
                                        新消息通知
                                    </a>
                                </li>
                                <li class="mui-table-view-cell">
                                    <a class="mui-navigate-right">
                                        隐私
                                    </a>
                                </li>
                                <li class="mui-table-view-cell">
                                    <a class="mui-navigate-right">
                                        通用
                                    </a>
                                </li>
                            </ul>
                            <ul class="mui-table-view" style="margin-top: 25px;">
                                <li class="mui-table-view-cell">
                                    <a class="mui-navigate-right">
                                        关于mui
                                    </a>
                                </li>
                            </ul>
                            <ul class="mui-table-view" style="margin-top: 25px;">
                                <li class="mui-table-view-cell">
                                    <a style="text-align: center;color: #FF3B30;">
                                        退出登录
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <nav class="mui-bar mui-bar-tab">
                <a class="mui-tab-item mui-active" href="#tabbar">
                    <span class="mui-icon mui-icon-home" style="margin-left: 0px;"></span>
                    <span class="mui-tab-label">首页</span>
                </a>
                <a class="mui-tab-item" href="#tabbar-with-chat">
                    <span class="mui-icon mui-icon-email" style="margin-left: 0px;"><span
                                class="mui-badge">9</span></span>
                    <span class="mui-tab-label">消息</span>
                </a>
                <a class="mui-tab-item" href="#tabbar-with-contact">
                    <span class="mui-icon mui-icon-contact" style="margin-left: 0px;"></span>
                    <span class="mui-tab-label">通讯录</span>
                </a>
                <a class="mui-tab-item" href="#tabbar-with-map">
                    <span class="mui-icon mui-icon-gear" style="margin-left: 0px;"></span>
                    <span class="mui-tab-label">设置</span>
                </a>
            </nav>
            <#--不能删，删除了无法点击遮罩层返回-->
            <div class="mui-off-canvas-backdrop"></div>

        </div>
    </div>
</div>

</body>
<script src="../js/mui.min.js"></script>
<script src="../js/jquery-3.4.1.min.js"></script>
<script src="../js/vue.min.js"></script>
<script src="../js/axios.min.js"></script>
<#--<script>-->
<#--var vm = new Vue({-->
<#--    el: '#offCanvasWrapper',-->
<#--    data: {-->
<#--    },-->
<#--    mounted: function () {-->
<#--    },-->
<#--    methods: {-->
<#--        gotoPwd:function(){-->
<#--            console.log("123");-->
<#--            this.$router.push({path: '/pwd/pwd'});-->
<#--        }-->
<#--    }-->
<#--})-->
<#--</script>-->

<script>
<#--解决A标签无法跳转的问题-->
    // 监听tap事件，解决 a标签 不能跳转页面问题
    mui('body').on('tap','a',function(){
        document.location.href=this.href;
    });
    mui.init({
        swipeBack: true //启用右滑关闭功能
    });
    // mui.init();
    //侧滑容器父节点
    var offCanvasWrapper = mui('#offCanvasWrapper');
    //主界面容器
    var offCanvasInner = offCanvasWrapper[0].querySelector('.mui-inner-wrap');
    //菜单容器
    var offCanvasSide = document.getElementById("offCanvasSide");
    if (!mui.os.android) {
        document.getElementById("move-togger").classList.remove('mui-hidden');
        var spans = document.querySelectorAll('.android-only');
        for (var i = 0, len = spans.length; i < len; i++) {
            spans[i].style.display = "none";
        }
    }
    //移动效果是否为整体移动
    var moveTogether = false;
    //侧滑容器的class列表，增加.mui-slide-in即可实现菜单移动、主界面不动的效果；
    var classList = offCanvasWrapper[0].classList;
    //变换侧滑动画移动效果；
    mui('.mui-input-group').on('change', 'input', function () {
        if (this.checked) {
            offCanvasSide.classList.remove('mui-transitioning');
            offCanvasSide.setAttribute('style', '');
            classList.remove('mui-slide-in');
            classList.remove('mui-scalable');
            switch (this.value) {
                case 'main-move':
                    if (moveTogether) {
                        //仅主内容滑动时，侧滑菜单在off-canvas-wrap内，和主界面并列
                        offCanvasWrapper[0].insertBefore(offCanvasSide, offCanvasWrapper[0].firstElementChild);
                    }
                    break;
                case 'main-move-scalable':
                    if (moveTogether) {
                        //仅主内容滑动时，侧滑菜单在off-canvas-wrap内，和主界面并列
                        offCanvasWrapper[0].insertBefore(offCanvasSide, offCanvasWrapper[0].firstElementChild);
                    }
                    classList.add('mui-scalable');
                    break;
                case 'menu-move':
                    classList.add('mui-slide-in');
                    break;
                case 'all-move':
                    moveTogether = true;
                    //整体滑动时，侧滑菜单在inner-wrap内
                    offCanvasInner.insertBefore(offCanvasSide, offCanvasInner.firstElementChild);
                    break;
            }
            offCanvasWrapper.offCanvas().refresh();
        }
    });
    //主界面‘显示侧滑菜单’按钮的点击事件
    // document.getElementById('offCanvasShow').addEventListener('tap', function() {
    // 	offCanvasWrapper.offCanvas('show');
    // });
    //菜单界面，‘关闭侧滑菜单’按钮的点击事件
    document.getElementById('offCanvasHide').addEventListener('tap', function () {
        offCanvasWrapper.offCanvas('close');
    });
    //主界面和侧滑菜单界面均支持区域滚动；
    mui('#offCanvasSideScroll').scroll();
    mui('#offCanvasContentScroll').scroll();
    //实现ios平台原生侧滑关闭页面；
    if (mui.os.plus && mui.os.ios) {
        mui.plusReady(function () { //5+ iOS暂时无法屏蔽popGesture时传递touch事件，故该demo直接屏蔽popGesture功能
            plus.webview.currentWebview().setStyle({
                'popGesture': 'none'
            });
        });
    }
</script>

<script>
    <#--新闻轮播-->
    function AutoScroll(obj) {
        $(obj).find("ul:first").animate({
                marginTop: "-1rem"
            },
            500,
            function () {
                $(this).css({
                    marginTop: "0rem"
                }).find("li:first").appendTo(this);
            });
    }

    $(document).ready(function () {
        AutoScroll("#demo");
        setInterval('AutoScroll("#demo")', 2000);
    });

</script>